package com.sciencep.pro.core.domain.dto.dingding;


import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author libe
 * 钉钉用户详情
 */
@Data
@Accessors(chain = true)
public class DingUserDetailVO {

    private int errcode;

    private String unionid;

    private String remark;

    private String userid;

    @JsonProperty("isLeaderInDepts")
    private String isleaderindepts;

    @JsonProperty("isBoss")
    private boolean isboss;

    @JsonProperty("hiredDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date hiredDate;


    @JsonProperty("isSenior")
    private Boolean isSenior;

    private String tel;

    private Date department;

    @JsonProperty("workPlace")
    private String workplace;

    private String email;

    @JsonProperty("orderInDepts")
    private String orderindepts;
    private String mobile;
    private String errmsg;
    private Boolean active;
    private String avatar;
    @JsonProperty("isAdmin")
    private Boolean isAdmin;
    @JsonProperty("isHide")
    private Boolean ishide;
    private String jobnumber;
    private String name;
    private JSONObject extattr;
    @JsonProperty("stateCode")
    private String statecode;
    private String position;
    private List<DingUserRoleVO> roles;

}
